package com.base.monitor.admin.controller.biz.cfg;

import com.base.monitor.framework.annotation.ResponseResult;
import com.base.monitor.module.biz.service.cfg.InteractionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: tsing
 * @create: 2021-06-17 21:53
 */
@RestController
@RequestMapping("/cfg/interaction")
@ResponseResult
public class InteractionController {

    @Autowired
    private InteractionService interactionService;

    /**
     * 从基础监控管理系统中获取所有指标、设备和网关的信息
     */
    @GetMapping
    public void syncAllInfoFromRemote() {
        interactionService.syncAllInfoFromRemote();
    }
}
